'''
''' IBAN Functions - XIBANExceptions.vb
'''
''' This program is free software; you can redistribute it and/or modify
''' it under the terms of the GNU General Public License as published by
''' the Free Software Foundation; either version 2 of the License, or
''' (at your option) any later version.
'''
''' This program is distributed in the hope that it will be useful,
''' but WITHOUT ANY WARRANTY; without even the implied warranty of
''' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
''' GNU General Public License for more details.
'''
''' You should have received a copy of the GNU General Public License
''' along with this program; if not, write to the Free Software
''' Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
'''

''' -----------------------------------------------------------------------------
''' Project	 : IBANFuncsCore
''' Class	 : Core.XIBANDefinitionsReadException
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' This is thrown if an error occurs while reading IBANDefinitions.xml.
''' </summary>
''' <remarks>
''' </remarks>
''' <history>
''' 	[Nick]	2/8/2007	Created
''' </history>
''' -----------------------------------------------------------------------------
Public Class XIBANDefinitionsReadException
    Inherits Exception
    Public Sub New()
        MyBase.new()
    End Sub

    Public Sub New(ByVal msg As String)
        MyBase.New(msg)
    End Sub
End Class

''' -----------------------------------------------------------------------------
''' Project	 : IBANFuncsCore
''' Class	 : Core.XIBANInvalidStringException
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' This is thrown if an IBAN string is invalid (null, too long or too short).
''' </summary>
''' <remarks>
''' </remarks>
''' <history>
''' 	[Nick]	2/8/2007	Created
''' </history>
''' -----------------------------------------------------------------------------
Public Class XIBANInvalidStringException
    Inherits Exception
    Public Sub New()
        MyBase.new()
    End Sub

    ''' -----------------------------------------------------------------------------
    ''' <summary>
    ''' Constructor that sets an explanatory exception message.
    ''' </summary>
    ''' <param name="msg">Exception message.</param>
    ''' <remarks>
    ''' </remarks>
    ''' <history>
    ''' 	[Nick]	2/8/2007	Created
    ''' </history>
    ''' -----------------------------------------------------------------------------
    Public Sub New(ByVal msg As String)
        MyBase.New(msg)
    End Sub
End Class

''' -----------------------------------------------------------------------------
''' Project	 : IBANFuncsCore
''' Class	 : Core.XIBANNumericCharacterException
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' This is thrown if an alphanumeric character was expected in a specific position
''' of the IBAN, but a numeric one was found.
''' </summary>
''' <remarks>
''' </remarks>
''' <history>
''' 	[Nick]	2/8/2007	Created
''' </history>
''' -----------------------------------------------------------------------------
Public Class XIBANNumericCharacterException
    Inherits Exception
    Public Sub New()
        MyBase.new()
    End Sub

    ''' -----------------------------------------------------------------------------
    ''' <summary>
    ''' Constructor that sets an explanatory exception message.
    ''' </summary>
    ''' <param name="msg">Exception message.</param>
    ''' <remarks>
    ''' </remarks>
    ''' <history>
    ''' 	[Nick]	2/8/2007	Created
    ''' </history>
    ''' -----------------------------------------------------------------------------
    Public Sub New(ByVal msg As String)
        MyBase.New(msg)
    End Sub
End Class

''' -----------------------------------------------------------------------------
''' Project	 : IBANFuncsCore
''' Class	 : Core.XIBANInvalidCountryCodeException
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' This is thrown if a country code is invalid (not present in the XML definition file).
''' </summary>
''' <remarks>
''' </remarks>
''' <history>
''' 	[Nick]	2/8/2007	Created
''' </history>
''' -----------------------------------------------------------------------------
Public Class XIBANInvalidCountryCodeException
    Inherits Exception
    Public Sub New()
        MyBase.new()
    End Sub

    ''' -----------------------------------------------------------------------------
    ''' <summary>
    ''' Constructor that sets an explanatory exception message.
    ''' </summary>
    ''' <param name="msg">Exception message.</param>
    ''' <remarks>
    ''' </remarks>
    ''' <history>
    ''' 	[Nick]	2/8/2007	Created
    ''' </history>
    ''' -----------------------------------------------------------------------------
    Public Sub New(ByVal msg As String)
        MyBase.New(msg)
    End Sub
End Class

''' -----------------------------------------------------------------------------
''' Project	 : IBANFuncsCore
''' Class	 : Core.XIBANNotNumericException
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' This is thrown if an IBAN element is alphanumeric where numeric only is expected.
''' </summary>
''' <remarks>
''' </remarks>
''' <history>
''' 	[Nick]	2/8/2007	Created
''' </history>
''' -----------------------------------------------------------------------------
Public Class XIBANNotNumericException
    Inherits Exception
    Public Sub New()
        MyBase.new()
    End Sub

    ''' -----------------------------------------------------------------------------
    ''' <summary>
    ''' Constructor that sets an explanatory exception message.
    ''' </summary>
    ''' <param name="msg">Exception message.</param>
    ''' <remarks>
    ''' </remarks>
    ''' <history>
    ''' 	[Nick]	2/8/2007	Created
    ''' </history>
    ''' -----------------------------------------------------------------------------
    Public Sub New(ByVal msg As String)
        MyBase.New(msg)
    End Sub
End Class

''' -----------------------------------------------------------------------------
''' Project	 : IBANFuncsCore
''' Class	 : Core.XIBANIncorrectCheckDigitsException
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' This is thrown if an IBAN has incorrect check digits
''' </summary>
''' <remarks>
''' </remarks>
''' <history>
''' 	[Nick]	2/8/2007	Created
''' </history>
''' -----------------------------------------------------------------------------
Public Class XIBANIncorrectCheckDigitsException
    Inherits Exception
    Public Sub New()
        MyBase.new()
    End Sub

    ''' -----------------------------------------------------------------------------
    ''' <summary>
    ''' Constructor that sets an explanatory exception message.
    ''' </summary>
    ''' <param name="msg">Exception message.</param>
    ''' <remarks>
    ''' </remarks>
    ''' <history>
    ''' 	[Nick]	2/8/2007	Created
    ''' </history>
    ''' -----------------------------------------------------------------------------
    Public Sub New(ByVal msg As String)
        MyBase.New(msg)
    End Sub
End Class